From 073c084c3c889cd540103249b0ec0d24b9fe7774 Mon Sep 17 00:00:00 2001 From: "cl349@freefall.cl.cam.ac.uk" Date: Tue, 12 Oct 2004 20:54:36 +0000 Subject: [PATCH] bitkeeper revision 1.1159.108.1 (416c448cJI8mt2eMnwbg061FjyhOpg) Put migrated domains on the cpu they were originally assigned. --- tools/python/xen/xend/XendDomainInfo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 7f789a48f7..b8aba6bb99 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -439,6 +439,9 @@ class XendDomainInfo: self.memory = int(sxp.child_value(config, 'memory')) if self.memory is None: raise VmError('missing memory size') + cpu = sxp.child_value(config, 'cpu') + if self.dom and cpu is not None: + xc.domain_pincpu(self.dom, int(cpu)) self.init_domain() self.configure_console() -- 2.30.2